package com.xxxx.server.controller;

import com.xxxx.server.mapper.AdminMapper;
import com.xxxx.server.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
class HelloController {
    @Autowired
    AdminMapper adminMapper;
    @GetMapping("/hello")
    public  String hello()
    {
       Admin admin=adminMapper.getAdminByID(1);
        return admin.getName();
    }
    @GetMapping("/employee/basic/hello")
    public String hello2(){
        return "/employee/basic/hello";
    }


    @GetMapping("/employee/advanced/hello")
    public String hello3(){
        return "/employee/advanced/hello";
    }
}
